<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 
 * Class FollowNum
 *
 * @since 2.0
 *
 * @Entity(table="follow_num")
 */
class FollowNum extends Model
{
    /**
     * 
     * @Id()
     * @Column()
     *
     * @var int
     */
    private $id;

    /**
     * 
     *
     * @Column(name="member_id", prop="memberId")
     *
     * @var int
     */
    private $memberId;

    /**
     * 有多少人关注自己
     *
     * @Column(name="fans_num", prop="fansNum")
     *
     * @var int|null
     */
    private $fansNum;

    /**
     * 自己主动关注多少人
     *
     * @Column(name="follow_num", prop="followNum")
     *
     * @var int|null
     */
    private $followNum;


    /**
     * @param int $id
     *
     * @return void
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @param int $memberId
     *
     * @return void
     */
    public function setMemberId(int $memberId): void
    {
        $this->memberId = $memberId;
    }

    /**
     * @param int|null $fansNum
     *
     * @return void
     */
    public function setFansNum(?int $fansNum): void
    {
        $this->fansNum = $fansNum;
    }

    /**
     * @param int|null $followNum
     *
     * @return void
     */
    public function setFollowNum(?int $followNum): void
    {
        $this->followNum = $followNum;
    }

    /**
     * @return int
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getMemberId(): ?int
    {
        return $this->memberId;
    }

    /**
     * @return int|null
     */
    public function getFansNum(): ?int
    {
        return $this->fansNum;
    }

    /**
     * @return int|null
     */
    public function getFollowNum(): ?int
    {
        return $this->followNum;
    }

}
